from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
from .models import *


def show_view(request):
    # 查询supermarket中所有数据
    supermarkets = SupermarketInfo.objects.all()
    # return render(request,'show.html',{'cps':cpeoples})
    return render(request, 'supermarket/shop.html', {'supermarkets': supermarkets})